#ifndef QMEASUREDIALOG_H
#define QMEASUREDIALOG_H
#include <QDialog>
#include "callbackinterface.h"

namespace Ui {
class qMeasureDialog;
}

/**
 * @brief 测量窗口
 */

class qMeasureDialog : public QDialog
{
    Q_OBJECT

public:
    explicit qMeasureDialog(QWidget *parent = 0);
    ~qMeasureDialog();

    /**
     * @brief getClosureNotifyMsg 获取通知对话框闭包
     */
    IClosureNotifyMMsg* getClosureNotifyMMsg();

public slots:
    /**
     * @brief notifyMeasureResult 通知对话框对测量结果显示BB
     * @param str 测量结果
     */
    void slotNotifyResult(QString str);

    /**
     * @brief close 关闭对话框
     */
    void closeEvent();

private:
    /**
     * @brief ClosureNotifyMMsg 闭包，对话框对测量结果显示
     */
    class ClosureNotifyMMsg : public IClosureNotifyMMsg
    {
    public:
        virtual void notify(char *msg);
    }in;

private:
    Ui::qMeasureDialog *ui;
};

#endif // QMEASUREDIALOG_H
